radiobutton: build the new state flags from the previous flags on click
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 18 Mar 2011 19:00:11 +0000 (15:00 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 18 Mar 2011 19:16:01 +0000 (15:16 -0400)
This fixes e.g. sensitivity issues with GtkRadioButton on state update.

https://bugzilla.gnome.org/show_bug.cgi?id=645172

gtk/gtkradiobutton.c

index 31651962ecd348c7ec335fd26e096da49e1d5381..590a085e5444cb0a32b74198e80e2f2559f07a43 100644 (file)
@@ -800,6 +800,8 @@ gtk_radio_button_clicked (GtkButton *button)
 
   g_object_ref (GTK_WIDGET (button));
 
+  new_state = gtk_widget_get_state_flags (GTK_WIDGET (button));
+
   if (gtk_toggle_button_get_active (toggle_button))
     {
       tmp_button = NULL;